/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.shoppingsystem.view.converters;

import org.jdesktop.beansbinding.Converter;

/**
 *
 * @author Usuario
 */
public class PasswordConverter extends Converter<Object, Object> {

    private Object originalValue = null;

    @Override
    public Object convertForward(Object value) {
//        if (originalValue == null && !value.toString().isEmpty()) {
//            originalValue = value;
//        }
//        return value.toString().equals("******")? originalValue : "******";
        return value;
    }

    @Override
    public Object convertReverse(Object value) {
//        if (originalValue == null) {
//            originalValue = value;
//        }
//       return value.toString().equals("******")? originalValue : "******";
        return value;
    }

}
